package com.wnxy.sk.member.config;

import com.wnxy.sk.common.jwt.JwtTemplate;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JwtConfig {

    @Value("${jwt.path}")
    private String path;
    @Value("${jwt.keyStoreSecurity}")
    private String keyStoreSecurity;
    @Value("${jwt.alias}")
    private String alias;
    
    @Bean
    public JwtTemplate jwtTemplate(){
        JwtTemplate jwtTemplate = new JwtTemplate(path,keyStoreSecurity,alias);
        return jwtTemplate;
    }
}
